lib/fetcher: Add cleanup function for OstreeFetcher
authorPhilip Withnall <withnall@endlessm.com>
Wed, 7 Jun 2017 14:41:17 +0000 (15:41 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 7 Jun 2017 16:55:36 +0000 (16:55 +0000)
This is only used internally (the header is not public), so it doesn’t
have to go in ostree-autocleanups.h. It will be used in some following
commits.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #911
Approved by: cgwalters

src/libostree/ostree-fetcher.h

index 16cf3d7d6a7cfaea07c233095198c855dbd6ed41..8ec5f209ad79f417568ff6f93b3364345b61a47a 100644 (file)
@@ -46,6 +46,8 @@ struct OstreeFetcherClass
   GObjectClass parent_class;
 };
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(OstreeFetcher, g_object_unref)
+
 typedef enum {
   OSTREE_FETCHER_FLAGS_NONE = 0,
   OSTREE_FETCHER_FLAGS_TLS_PERMISSIVE = (1 << 0),